: This article mainly introduces the rewrite commands break, last, redirect, and permanent in Nginx. if you are interested in PHP tutorials, refer to them. Reprinted from: rewrite command (break, last, redirect, permanent) in Nginx)
Rewite
In the
Rewirte basic function is to implement the URL of the jump and hide the real address, based on the Perl language of the canonical table specification. Usually help us achieve quasi-static, quasi-folder, domain name jump, prevent hotlinking and so on.
You can use the url forwarding feature (url-forwarding or urlredirect) implemented by the server technology to forward it to a domain name with www for access. However, we have mentioned that using this url forwarding method is not good for seo. the
Flexible URL rewriting can increase the availability and professionalism of your website. This is also an important factor in helping websites better be indexed by search engines. In this article
Article In, I will show you how to easily implement
Chapter 1 Overview
1.1. Domino URL command syntax
Http: // host/dominoobject? Action & arguments
HOST: DNS or IP
Dominoobject: A domino structure (object) such as view, form, page, proxy, folder, and navigator.
Action: operations performed on the
Redirect the sample code in Chinese and the sample code in Chinese displayed on the jump page with Chinese Parameters
Recently, I found a problem. When I access servlet and use redirection to jump to the page with Chinese parameters, I found that
URL Structure
Let's take a closer look at URLs and its related security meanings. A "funny" method of URL exploitation has been discovered by spam advertisers for a long time, but now the "KB" (Knowledge Base) Spoofing and the article published in
This article explains how Apache HTTP server applies the requested URL to determine the file system location to get the document. DocumentRootFor the decision to respond to a request for what content, the default behavior of httpd is to obtain the
First, create a new. htaccess file and write the following content in it:Rewriteengine on # rewriteengine is the rewrite engine switch on is to turn off rewriterule ([0-9] {1,}) $ index. php? Id = $1
Rewriterule: rewriterule is a rewrite rule that
Now most of the site and the mall will use the URL rewrite, access to this, but also because the e-commerce mall is being done. URL rewriting, which is to display the original URL in another rule, makes it easy for users to access and also block
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.